 <%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>【发行】结算单</title>
	</head>
	<script type="text/javascript" src="${pageContext.request.contextPath}/fxSpecialPage/knotPay.js"></script>
	<script type="text/javascript">
		$(function(){
			//initNewJS('ds_fx_clients_jslist1;ds_fx_clients_jslist_item1','5;77');
			})
		
function initNewJS(dsId,type){
	var divName = 'loadZB;KNOT_DATALIST'; //存放主表和明细表的divName
	var divNameT= new Array();
	$.ajax({
		type:'post',
		url:_m_url+'framework/loadMColumnsU',
		data:{'colId':dsId,'type':type},
		success:function(data){
			if(data ==""){
				alert("您长时间未操作，系统已经自动退出!，请重新登陆");
			}else{
				var typeT = new Array();
				typeT = type.split(";");
				divNameT = divName.split(";");
				for(var i = 0; i < typeT.length; i++){
					producePage(data[i],divNameT[i],typeT[i],'');
				}
				$('#KNOT_DATALIST').datagrid({
					height:260
				})
			}
		}
	})
	$.ajax({
		type:'post',
		url:_m_url+'singlePages/prebuten',
		data:{'butnId':dsId,'dsId':dsId},
		success:function(data){
			var dt=data.preButnList;
            var lordBtn = new Array();
            lordBtn =dt[0];
            var itemBtn=dt[1];
            if($("div#butnDiv a").length<=1){
	           	for(var b in itemBtn){
	   				$("<a class='easyui-linkbutton' onclick='"+itemBtn[b].SCRIPT_FUNC+"'>"+itemBtn[b].BUTN_NAME+"</a>").insertBefore("#return");
	   				$.parser.parse("#butnDiv");
	       		}
				for(var b in lordBtn){
	                $("<a class='easyui-linkbutton' onclick='"+lordBtn[b].SCRIPT_FUNC+"'>"+lordBtn[b].BUTN_NAME+"</a>").insertBefore("#return");
					$.parser.parse("#butnDiv");
	    		}
           }
		}
	})
}
		
	</script>
	
	<body style="width:1024px;height:400px;" onresize="resizeGrid();">
      <div id="KNOT_DG_PANEL">
		<div id='KNOT_PARENT_PANEL' title="导入商品的基本信息" style="overflow-x:hidden; ">
		     <!-- 加载按钮 -->
	         <div id="butnDiv" align="right">
		        <a id="return" class='easyui-linkbutton' onclick="javaScript:$('#KNOT_PARENT_PANEL').window('close');">返回</a>
	       	 </div>
		     <div id='layOutDiv' class="easyui-layout" style="width:100%;height:100%;">
		       	 <div region='north' split="true"   style="width:270px; height:290px; " id="tasknorth">
				     <form action="improtRetunInfo" id="shk_addWinForm" method="post"   encType='multipart/form-data' target="hidden_framew"
				       style="padding-left:15px;">
				       	<!-- 加载主表 -->
				       	<div id="loadZB">
				       		
				       	</div>
				     </form>
		     	</div>
			     <div region='center'  style=" height:650px;"  id="QCenterList" >  
				     <div id="KNOT_TAB_PANEL"    style="width: 100%;height:90%;">  
				   		<div title="明细列表">    
							<table  style="width: 100%;height:100%;padding-top: 10px;">
								<tr>
									<td style="padding-top: 10px;" width="100px;">
										<!-- 加载明细数据列表 -->	
										<table id="shk_addItemDatagrid"   style="width:auto;height:290px;"></table>
									</td>
								</tr>
							</table>
						</div>
					</div>
				</div>
	       	</div>
		</div>
	</div>
	
	<div id='manage_ap' type="hidden" >
		<div id='manage_app' >
	   </div>  
    </div>
	 
    </body>
</html>